package springboot.service;


import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
import springboot.netty.NettySer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springboot.mapper.StatusMapper;
import springboot.webservicers.service.impl.StudentServiceImpl;


import javax.annotation.PostConstruct;

@Service
public class StatusService {

    @Autowired
    StatusMapper statusMapper;
    /*
    * 这里是业务层，用于实现想要实现的业务
    * */
    @PostConstruct
    /*此注解只能加载非静态的void方法上*/
    public void nettyStart() throws Exception {
        new NettySer().start(10086);
    }
}
